package stu;

class Student{

    int number;//学号
    int state;//年级
    int score;//成绩

    public Student(){

    }

    public Student(int number, int state, int score) {
        this.number = number;
        this.state = state;
        this.score = score;
    }

    public String toString(){
        return "学号：" + number + "----" + "年级："+state+ "----" + "成绩:"+score;
    }

    public String info(){
        return "学号：" + number + "----" + "年级："+state+ "----" + "成绩:"+score;
    }
}
